#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Muto Hexapod Robot Control Library
A comprehensive Python library for controlling six-legged robots

Author: YAHBOOM | Gentle Xu
Date: 2025/01
Platform: Jetson Nano + Ubuntu
"""

from setuptools import setup, find_packages
import os

# Read the contents of README file
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

# Read requirements
with open(os.path.join(this_directory, 'requirements.txt'), encoding='utf-8') as f:
    requirements = [line.strip() for line in f if line.strip() and not line.startswith('#')]

setup(
    name="muto-hexapod-lib",
    version="1.0.0",
    author="YAHBOOM | Gentle Xu",
    author_email="support@yahboom.com",
    description="A comprehensive Python library for controlling six-legged robots",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/yahboom/muto-hexapod-lib",
    packages=find_packages(exclude=['voice_module*', 'voice_assistant*', 'test*', 'examples*']),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        "Topic :: Scientific/Engineering :: Human Machine Interfaces",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: System :: Hardware :: Hardware Drivers",
    ],
    python_requires=">=3.6",
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest>=6.0",
            "pytest-cov>=2.0",
            "black>=21.0",
            "flake8>=3.8",
            "mypy>=0.800",
        ],
        "docs": [
            "sphinx>=3.0",
            "sphinx-rtd-theme>=0.5",
            "myst-parser>=0.15",
        ],
    },
    entry_points={
        "console_scripts": [
            "muto-robot=MutoLargemodelInterface:main",
        ],
    },
    include_package_data=True,
    package_data={
        "muto_hexapod_lib": [
            "data/config/*.json",
            "data/config/*.yaml",
            "data/action_data/*.json",
            "audio/system_sounds/*.wav",
            "launch/*.launch",
            "launch/*.py",
        ],
    },
    zip_safe=False,
    keywords="hexapod robot control jetson nano ubuntu robotics six-legged",
    project_urls={
        "Bug Reports": "https://github.com/yahboom/muto-hexapod-lib/issues",
        "Source": "https://github.com/yahboom/muto-hexapod-lib",
        "Documentation": "https://muto-hexapod-lib.readthedocs.io/",
    },
)